package objects;

import java.util.List;

public class BoardData {

	private List<Player> players;
	private Envelope envelope;
	private ConfigurationType type;
	
	public List<Player> getPlayers() {
		return players;
	}
	public void setPlayers(List<Player> players) {
		this.players = players;
	}
	public Envelope getEnvelope() {
		return envelope;
	}
	public void setEnvelope(Envelope envelope) {
		this.envelope = envelope;
	}

	public Player getPlayerByIndex(int index)
	{
		if (players != null)
		{
			return players.get(index);
		}
		
		return null;
	}
	public ConfigurationType getType() {
		return type;
	}
	public void setType(ConfigurationType type) {
		this.type = type;
	}
}

